import {createRouter, createWebHistory} from "vue-router"
export default createRouter({
    // 路由模式
    history:createWebHistory(),
    routes:[
        {
            path:"/home",
            component:()=>import("@/pages/home/index.vue")
        },
        {
            path:"/detail",
            component:()=>import("@/pages/hospital/index.vue")
        },
        {
            path:"/",
            redirect:"/home"

        }
    ],
    scrollBehavior(){
        return{
            left:0,
            top:0
        }
    }
})